package com.yuexun.dhdoctor.module.meetingMaterial.adapter;

import android.widget.AbsListView;


import com.yuexun.dhdoctor.R;
import com.yuexun.dhdoctor.module.meetingMaterial.bean.MeetingMaterialDetailData;

import org.kymjs.kjframe.widget.AdapterHolder;
import org.kymjs.kjframe.widget.KJAdapter;

import java.util.Collection;

/**
 * Created by Administrator on 2016/11/15.
 */
public class MeetingMaterialDetailAdapter extends KJAdapter<MeetingMaterialDetailData.FeedbackListEntity> {

    public MeetingMaterialDetailAdapter(AbsListView view, Collection<MeetingMaterialDetailData.FeedbackListEntity> mDatas, int itemLayoutId) {
        super(view, mDatas, itemLayoutId);
    }

    @Override
    public void convert(AdapterHolder adapterHolder, MeetingMaterialDetailData.FeedbackListEntity item, boolean isScrolling, int position) {
        super.convert(adapterHolder, item, isScrolling, position);
        adapterHolder.setText(R.id.tv_comment_person,item.getMemberName());
        adapterHolder.setText(R.id.tv_comment_time, item.getCreateDate());
        adapterHolder.setText(R.id.tv_comment, item.getContent());
    }
}
